import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

public class Test2 {
    public static void main(String[] args) {
        try(OutputStream outputStream = new FileOutputStream("f:/tt.txt" , true) ) {
            String str = "你好世界"; //  创建字符串,用来输出
          outputStream.write(str.getBytes());  //把字符串转成字节类型的数据输出
        } catch (IOException e) {
           e.printStackTrace();
        }


    }
}
